package com.netsdk.yushi.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author aqie
 * @Date 2022/3/26 17:01
 * @desc
 */

@NoArgsConstructor
@Data
public class YushiResponse {

    @JsonProperty("Response")
    private ResponseDTO response;

    @NoArgsConstructor
    @Data
    public static class ResponseDTO {
        @JsonProperty("ResponseURL")
        private String responseURL = "/LAPI/V1.0/PACS/Controller/Event/Notifications";
        @JsonProperty("StatusCode")
        private Integer statusCode;
        @JsonProperty("StatusString")
        private String statusString;
        @JsonProperty("Data")
        private DataDTO data;

        @NoArgsConstructor
        @Data
        public static class DataDTO {
            @JsonProperty("RecordID")
            private Integer recordID;
            @JsonProperty("Time")
            private String time;
        }
    }
}
